package cn.itzzx.lagou.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * TODO
 *
 * @author Martin
 * @since 1.0
 */
@FeignClient(value = "lagou-service-code",path = "/code")
public interface CodeFeignClientService {

    @PostMapping("validate/{email}/{code}")
    public Integer validate(@PathVariable("email") String email,
                            @PathVariable("code") String code);

}
